package Mangos::DB::Characters::CharacterReputation;

use strict;

use base qw(Mangos::DB::Characters);

__PACKAGE__->meta->setup
(
    table   => 'character_reputation',

    columns => 
    [
        guid     => { type => 'integer', not_null => 1 },
        faction  => { type => 'integer', not_null => 1 },
        standing => { type => 'integer', default => '0', not_null => 1 },
        flags    => { type => 'integer', default => '0', not_null => 1 },
    ],

    primary_key_columns => [ 'guid', 'faction' ],
);

1;

package Mangos::DB::Characters::CharacterReputation::Manager;

use strict;
use warnings;

use base 'Rose::DB::Object::Manager';

sub object_class { 'Mangos::DB::Characters::CharacterReputation' }

__PACKAGE__->make_manager_methods('character_reputation');

1;
